import {
  add,
  update,
  deleteById
} from './service';

export default {
  namespace: 'blogEdit',
  state: {},
  effects: {
    *add({ payload }, { call }) {
      return yield call(add, payload);
    },
    *update({ payload }, { call }) {
      return yield call(update, payload);
    },
    *deleteById({ payload }, { call }) {
      return yield call(deleteById, payload);
    },
  },
  reducers: {},
}
